 package com.suozq.current;
import java.math.BigDecimal;
import java.util.concurrent.locks.ReentrantLock;

import sun.misc.Unsafe;
 /**
 * @author 锁战强
 * @date 2022/04/12
 */
public class UnSafeTest {
    public static void test() {
        BigDecimal b  = new BigDecimal(1);
        
    }
    public static void main(String[] args) {
        Unsafe unsafe = Unsafe.getUnsafe();
        unsafe.compareAndSwapInt(args, 0, 0, 0);
        unsafe.objectFieldOffset(null);
        unsafe.staticFieldOffset(null);
        ReentrantLock rl = new ReentrantLock(true);
        Thread.currentThread().interrupt();
        rl.lock();
        test();
    }
}
